﻿using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;

namespace ZhiJiao.Models.Entities
{
    /// <summary>
    /// 测评模块
    /// </summary>
    [Table("EvaluationParts")]
    public class EvaluationPart :BaseEntity
    {
        /// <summary>
        /// 队列顺序
        /// </summary>
        public int Order { get; set; }

        /// <summary>
        /// 模块名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 模块描述
        /// </summary>
        public string? Content { get; set; }

        /// <summary>
        /// 问题集合
        /// </summary>
        [JsonIgnore]
        public List<Question> Questions { get; set; }

        /// <summary>
        /// 所属测评
        /// </summary>
        [JsonIgnore]
        public Evaluation Evaluation { get; set; }

        /// <summary>
        /// 模块总分
        /// </summary>
        public int TotalScore { get; set; }
    }
}
